#ifndef POISSONNODE_H
#define POISSONNODE_H

#include "node.h"

class PoissonNode : public Node
{
private:

    int lambdaNode;

    virtual bool inRange(double v);

public:

    PoissonNode(double val);
    PoissonNode(QString label, double val, double sd, Node * lambdaNode, bool isObserved = false);

    virtual double generateSampleFromDistribution();
    void setLambdaNode(Node * node);

    virtual double computeLogLikelihood();

};

#endif // POISSONNODE_H
